using System;
using System.Collections.Generic;
using System.Text;

namespace GoogleCalendarReminder
{
    /// <summary>
    /// A class which formats a DateTime value into two specific values. This class is used to generate
    /// the timespan when retrieving events from the Google Calendar service.
    /// </summary>
    public class DateTimeFormatter
    {
        #region Private Data Members

        private DateTime _startTime;
        private DateTime _endTime;

        #endregion

        #region Constructors

        /// <summary>
        /// Creates a new instance of the GoogleCalendarReminder.DateTimeFormatter class.
        /// </summary>
        /// <param name="dateTime">The DateTime object to format.</param>
        public DateTimeFormatter(DateTime dateTime)
        {
            _startTime = new DateTime(dateTime.Year, dateTime.Month, dateTime.Day, 0, 0, 0);
            _endTime = _startTime.Add(new TimeSpan(7, 5, 0, 0));
        }

        #endregion

        #region Public Properties

        /// <summary>
        /// Gets the end time.
        /// </summary>
        public DateTime EndTime
        {
            get { return _endTime; }
        }

        /// <summary>
        /// Gets the start time.
        /// </summary>
        public DateTime StartTime
        {
            get { return _startTime; }
        }

        #endregion
    }
}
